We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I experiment strange behaviour using percolate API using fresh 1.0.0-Beta2 elasticsearch :
First, I index a new percolate query :
curl -XPUT 'localhost:9200/my-index/.percolator/1' -d '{ "query" : { "match" : { "message" : "bonsai tree" } } }'
Then when I use Percolate API :
curl -XGET 'localhost:9200/my-index/message/_percolate' -d '{ "doc" : { "message" : "A new bonsai tree in the office" }, "score":true }'
note the usage of score:true
score:true
I get a result without score :
{ "took": 5, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "total": 1, "matches": [ { "_index": "my-index", "_id": "1" } ] }
But if I change the location of the parameter score in the query :
score
curl -XGET 'localhost:9200/my-index/message/_percolate' -d '{ "score":true, "doc" : { "message" : "A new bonsai tree in the office" } }'
Then, I get the expected result :
{ "took": 39, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "total": 1, "matches": [ { "_index": "my-index", "_id": "1", "_score": 1 } ] }
I experiment the same behaviour with the highlight and size parameters.
highlight
size
The text was updated successfully, but these errors were encountered:
eacbd8f
@pdesoyres Thanks for reporting this bug, I've pushed a fix for this, which will be included in the next 1.0 release.
Sorry, something went wrong.
martijnvg
No branches or pull requests
I experiment strange behaviour using percolate API using fresh 1.0.0-Beta2 elasticsearch :
First, I index a new percolate query :
Then when I use Percolate API :
note the usage of
score:true
I get a result without score :
But if I change the location of the parameter
score
in the query :Then, I get the expected result :
I experiment the same behaviour with the
highlight
andsize
parameters.The text was updated successfully, but these errors were encountered: